home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
SCHEME
/
GNU
/
SCM4E1
/
!Scm
/
slib
/
pp
< prev
next >
Wrap
Text File
|
1992-10-19
|
394b
|
13 lines
; File: "pp.scm" (c) 1991, Marc Feeley
(require 'generic-write)
; (pretty-print obj port) pretty prints 'obj' on 'port'. The current
; output port is used if 'port' is not specified.
(define (pp:pretty-print obj . opt)
(let ((port (if (pair? opt) (car opt) (current-output-port))))
(generic-write obj #f 79 (lambda (s) (display s port) #t))))
(define pretty-print pp:pretty-print)